<head>
    <style type="text/css">
        #grouplogo
        {
            width: 180px;
            height: 138px;
        }
        #groupintro
        {
            width: 421px;
        }
    </style>
</head>
<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>
<div id="groupinfo">
   <table align ="center"> 
   <tr><td>
	  <div id ="grouplogo">
	   <ul>
	    <li style="width: 91px"><img src="http://pic.babytree.com/foto/thumbs/37/50/78/square-4797033439135242165527273u63907355.jpg" width=100 height=100 /></li>
	   </ul>
	    <span id="relation" name="relation" >
	    <a href ="/Pages/youhp/group/Join.aspx?id={GroupInfo.Id}"><img src="" alt ="{state}" 
              style="width: 100px; height: 23px" /></a>
        </span>
   
	  </div> </td>
	  <td>
	  <div id ="groupintro">
	      <ul>
	        <li><span>圈子名称:</span><a href="">{GroupInfo.GroupName}</a><span >(&nbsp;{creattime}&nbsp;创建)</span></li>
		    <li><span>成员数：</span>{GroupInfo.UserNum}</li>

		    <li><span>创建人：</span><a href="#">{GroupInfo.AppUserName}</a>
              </li>
		    <li><span>管理员：</span>
		    <%csharp%>
		    foreach(GroupUserInfo admin in mGroupAdminList)
		    {
		    <%/csharp%>
		    <a href="#">{admin.UserName}</a> &nbsp;
            <%csharp%>
		    }
		    <%/csharp%>

            </li>
		    <li><span>圈子地区：</span><a href="#" >{GroupInfo.Area}</a></li>
		    <li><span>圈子关键词：</span><a href="#">{GroupInfo.Keyword}</a></li>

		    <li><span>圈子简介：</span>{GroupInfo.Introduction}</li>
		    
	      </ul>

      </div></td>
      </tr></table>
  </div>
  <br /><br/>
<table width ="100%">
  <tr><td width ="80%">
  <div id ="topiclist" align ="center">
  <table>
  <tr>
  <td align ="center">标题</td><td align ="center">浏览/回复</td><td align ="center">作者</td><td align ="center">最后回复</td>
  </tr>
  <%csharp%>
  foreach(TopicInfo topic in mTopicList)
  {
  <%/csharp%>
  <tr>
  <td><a href ="/Group/Topic.aspx?id={topic.Id}">{topic.Title}</a></td><td>{topic.Hits}/{topic.ReplyCount}</td>
  <td><a href ="#">{topic.PostUserName}</a><br />{topic.PostTime}</td><td><a href ="#">{topic.LatestReplyUserName}</a><br />{topic.LatestReplyTime}</td> 
 
  </tr>
  
  <%csharp%>
   }
  <%/csharp%>
  </table>
  <div id ="pages">
     <table >
     <tr><td>
            <div>
	            <a href="&page={1}">第一页</a>
	            <a href="&page={_prevpage}">上一页</a>
	            <span>...</span>
            <%csharp%>
            int pageno = 0;
            for(int i=0; i < _pageCount; i++)
            {
	            pageno ++;
            <%/csharp%>	
            <%if {pageno}==_pageIndex %>
	            <a href="&page={pageno}"><b>{pageno}</b></a>
            <%else%>
	            <a href="&page={pageno}">{pageno}</a>
            <%/if%>
            <%csharp%>
            }
            <%/csharp%>	
               <span>...</span>
	            <a href="&page={_nextpage}">下一页</a>
	            <a href="&page={_pageCount}">最后一页</a>
            </div>	
            </td><td>
            <div>
            <form method ="post" action ="">
	            <select id="pagesel" name ="pagesel">
            <%csharp%>
            for(int i=1; i <= _pageCount; i++)
            {
            <%/csharp%>

            <%if i==_pageIndex %>
	            <option value={i} selected =selected >{i}</option>
            <%else%>
	            <option value={i}>{i}</option>
            <%/if%>

            <%csharp%>
            }
            <%/csharp%>
	            </select>
	            <input type ="submit" value ="跳转到" />
            </form>
            </div>
            </td></tr>
            </table>
  </div>
  
  </div>
  
  </td><td>
  
       <div  id ="memberlist">
           <table >
           <tr><td>
            <div id ="admin">
            <span>管理员：</span>

            <%csharp%>
            foreach(GroupUserInfo admin in mGroupAdminList)
            {
            <%/csharp%>
            <div ><a href="#"><img src="{admin.UserAvatar}"/></a>
            <ul> 
            <li><a href ="#">{admin.UserName}</a></li> <li>来自：</li>
            </ul>
            </div>    

            <%csharp%>
            }
            <%/csharp%>


            </div>
            </td></tr>
            <tr><td>
            <div id ="activest">
            <span>活跃成员：</span>
            <%csharp%>
            foreach(GroupUserInfo member in mGroupActivestList)
            {
            <%/csharp%>
            <div ><a href="#"><img src="{member.UserAvatar}"/></a>
            <ul> 
            <li><a href ="#">{member.UserName}</a></li>
            </ul>
            </div>    

            <%csharp%>
            }
            <%/csharp%>

            </div>
            </td></tr>
            
           </table>
        </div>
      </td></tr></table>
  
  
 


<%template _footer%>